module.exports = {
  "presets": ["@babel/preset-react", "@babel/preset-env"],
  "plugins": [
    ["@babel/plugin-proposal-decorators", { "legacy": true }],//支持装饰器
    ["@babel/plugin-transform-runtime"],
    ["@babel/plugin-proposal-class-properties"]//@babel/plugin-proposal-decorators 中legacy为true时的需要项
  ]
}